/**
 * @作者:黎谢之
 * @创建时间：2021/7/7
 * @修改时间：2021/7/10
 */
package com.example.senior_bug.Service;

import com.example.senior_bug.ToolClass.Result;
import com.example.senior_bug.Repository.ChannelRepository;
import com.example.senior_bug.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChannelService {
    @Autowired
    private ChannelRepository channelRepository;

    //获取所有一级分类
    public Result GetAllChannel() {
        return ResultUtils.success(channelRepository.findAll());
    }
}
